<div class="mobileModels view">
<h2><?php echo __('Mobile Model'); ?></h2>
	<dl>
		<dt><?php echo __('Mobile Model Id'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['mobile_model_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Model Code'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['model_code']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Image Url'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['image_url']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Is Active'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['is_active']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Price'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['price']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Discount'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['discount']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Retail Price'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['retail_price']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Warranty Month'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['warranty_month']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mobile Base'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['MobileBase']['mobile_base_name'], array('controller' => 'mobile_bases', 'action' => 'view', $mobileModel['MobileBase']['mobile_base_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mobile Name'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['mobile_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mobile Dimension'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['mobile_dimension']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mobile Weight'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['mobile_weight']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Screen Type'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['ScreenType']['screen_type_name'], array('controller' => 'screen_types', 'action' => 'view', $mobileModel['ScreenType']['screen_type_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Screen Color Count'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['screen_color_count']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Screen Standard'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['ScreenStandard']['screen_standard_name'], array('controller' => 'screen_standards', 'action' => 'view', $mobileModel['ScreenStandard']['screen_standard_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Screen Resolution'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['ScreenResolution']['screen_resolution_value'], array('controller' => 'screen_resolutions', 'action' => 'view', $mobileModel['ScreenResolution']['screen_resolution_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Screen Size'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['ScreenSize']['screen_size_value'], array('controller' => 'screen_sizes', 'action' => 'view', $mobileModel['ScreenSize']['screen_size_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Touch Description'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['touch_description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Camera Feature'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['camera_feature']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cpu Speed'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['cpu_speed']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Chipset'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['Chipset']['chipset_name'], array('controller' => 'chipsets', 'action' => 'view', $mobileModel['Chipset']['chipset_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Gpus'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['Gpus']['gpu_name'], array('controller' => 'gpuses', 'action' => 'view', $mobileModel['Gpus']['gpus_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ram'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['ram']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Internal Storage'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['internal_storage']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Storage Up To'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['storage_up_to']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Card Slot Type'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['CardSlotType']['card_slot_type_name'], array('controller' => 'card_slot_types', 'action' => 'view', $mobileModel['CardSlotType']['card_slot_type_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Battery Type'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mobileModel['BatteryType']['battery_type_name'], array('controller' => 'battery_types', 'action' => 'view', $mobileModel['BatteryType']['battery_type_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Battery Capacity'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['battery_capacity']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Battery Removable'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['battery_removable']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Sim Count'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['sim_count']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Three Description'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['three_description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Four Description'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['four_description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Gps Description'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['gps_description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Bluetooth Description'); ?></dt>
		<dd>
			<?php echo h($mobileModel['MobileModel']['bluetooth_description']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Mobile Model'), array('action' => 'edit', $mobileModel['MobileModel']['mobile_model_id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Mobile Model'), array('action' => 'delete', $mobileModel['MobileModel']['mobile_model_id']), array(), __('Are you sure you want to delete # %s?', $mobileModel['MobileModel']['mobile_model_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Mobile Models'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mobile Model'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Mobile Bases'), array('controller' => 'mobile_bases', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mobile Base'), array('controller' => 'mobile_bases', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Screen Types'), array('controller' => 'screen_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Screen Type'), array('controller' => 'screen_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Screen Standards'), array('controller' => 'screen_standards', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Screen Standard'), array('controller' => 'screen_standards', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Screen Resolutions'), array('controller' => 'screen_resolutions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Screen Resolution'), array('controller' => 'screen_resolutions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Screen Sizes'), array('controller' => 'screen_sizes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Screen Size'), array('controller' => 'screen_sizes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Chipsets'), array('controller' => 'chipsets', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chipset'), array('controller' => 'chipsets', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Gpuses'), array('controller' => 'gpuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Gpus'), array('controller' => 'gpuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Card Slot Types'), array('controller' => 'card_slot_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Card Slot Type'), array('controller' => 'card_slot_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Battery Types'), array('controller' => 'battery_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Battery Type'), array('controller' => 'battery_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Model Colors'), array('controller' => 'model_colors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Model Color'), array('controller' => 'model_colors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Purchase Details'), array('controller' => 'purchase_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Purchase Detail'), array('controller' => 'purchase_details', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sale Details'), array('controller' => 'sale_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sale Detail'), array('controller' => 'sale_details', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Model Colors'); ?></h3>
	<?php if (!empty($mobileModel['ModelColor'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Mobile Model Id'); ?></th>
		<th><?php echo __('Color Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($mobileModel['ModelColor'] as $modelColor): ?>
		<tr>
			<td><?php echo $modelColor['mobile_model_id']; ?></td>
			<td><?php echo $modelColor['color_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'model_colors', 'action' => 'view', $modelColor['mobile_model_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'model_colors', 'action' => 'edit', $modelColor['mobile_model_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'model_colors', 'action' => 'delete', $modelColor['mobile_model_id']), array(), __('Are you sure you want to delete # %s?', $modelColor['mobile_model_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Model Color'), array('controller' => 'model_colors', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Products'); ?></h3>
	<?php if (!empty($mobileModel['Product'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Product Id'); ?></th>
		<th><?php echo __('Product Code'); ?></th>
		<th><?php echo __('Warehouse Id'); ?></th>
		<th><?php echo __('Purchase Detail Id'); ?></th>
		<th><?php echo __('Sales Detail Id'); ?></th>
		<th><?php echo __('Mobile Model Id'); ?></th>
		<th><?php echo __('Serial Number'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($mobileModel['Product'] as $product): ?>
		<tr>
			<td><?php echo $product['product_id']; ?></td>
			<td><?php echo $product['product_code']; ?></td>
			<td><?php echo $product['warehouse_id']; ?></td>
			<td><?php echo $product['purchase_detail_id']; ?></td>
			<td><?php echo $product['sales_detail_id']; ?></td>
			<td><?php echo $product['mobile_model_id']; ?></td>
			<td><?php echo $product['serial_number']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'products', 'action' => 'view', $product['product_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'products', 'action' => 'edit', $product['product_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'products', 'action' => 'delete', $product['product_id']), array(), __('Are you sure you want to delete # %s?', $product['product_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Purchase Details'); ?></h3>
	<?php if (!empty($mobileModel['PurchaseDetail'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Purchase Detail Id'); ?></th>
		<th><?php echo __('Purchase Id'); ?></th>
		<th><?php echo __('Mobile Model Id'); ?></th>
		<th><?php echo __('Quantity'); ?></th>
		<th><?php echo __('Price'); ?></th>
		<th><?php echo __('Total'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($mobileModel['PurchaseDetail'] as $purchaseDetail): ?>
		<tr>
			<td><?php echo $purchaseDetail['purchase_detail_id']; ?></td>
			<td><?php echo $purchaseDetail['purchase_id']; ?></td>
			<td><?php echo $purchaseDetail['mobile_model_id']; ?></td>
			<td><?php echo $purchaseDetail['quantity']; ?></td>
			<td><?php echo $purchaseDetail['price']; ?></td>
			<td><?php echo $purchaseDetail['total']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'purchase_details', 'action' => 'view', $purchaseDetail['purchase_detail_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'purchase_details', 'action' => 'edit', $purchaseDetail['purchase_detail_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'purchase_details', 'action' => 'delete', $purchaseDetail['purchase_detail_id']), array(), __('Are you sure you want to delete # %s?', $purchaseDetail['purchase_detail_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Purchase Detail'), array('controller' => 'purchase_details', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Sale Details'); ?></h3>
	<?php if (!empty($mobileModel['SaleDetail'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Sale Detail Id'); ?></th>
		<th><?php echo __('Sale Id'); ?></th>
		<th><?php echo __('Mobile Model Id'); ?></th>
		<th><?php echo __('Quantity'); ?></th>
		<th><?php echo __('Price'); ?></th>
		<th><?php echo __('Discount For Item'); ?></th>
		<th><?php echo __('Retail Price'); ?></th>
		<th><?php echo __('Total'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($mobileModel['SaleDetail'] as $saleDetail): ?>
		<tr>
			<td><?php echo $saleDetail['sale_detail_id']; ?></td>
			<td><?php echo $saleDetail['sale_id']; ?></td>
			<td><?php echo $saleDetail['mobile_model_id']; ?></td>
			<td><?php echo $saleDetail['quantity']; ?></td>
			<td><?php echo $saleDetail['price']; ?></td>
			<td><?php echo $saleDetail['discount_for_item']; ?></td>
			<td><?php echo $saleDetail['retail_price']; ?></td>
			<td><?php echo $saleDetail['total']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'sale_details', 'action' => 'view', $saleDetail['sale_detail_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'sale_details', 'action' => 'edit', $saleDetail['sale_detail_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'sale_details', 'action' => 'delete', $saleDetail['sale_detail_id']), array(), __('Are you sure you want to delete # %s?', $saleDetail['sale_detail_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sale Detail'), array('controller' => 'sale_details', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
